package com.ruoyi.match.service.impl;

import cn.hutool.core.date.DateTime;
import com.ruoyi.match.domain.ChMarket;
import com.ruoyi.match.mapper.ChMarketExtMapper;
import com.ruoyi.match.mapper.ChMarketMapper;
import com.ruoyi.match.service.ChMarketService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @author: AnYu
 * @Version: v1.00
 * @Created: 2023/12/20 20:45
 */
@Service
public class ChMarketServiceImpl implements ChMarketService {
    @Resource
    private ChMarketExtMapper chMarketExtMapper;
    @Autowired
    private ChMarketMapper chMarketMapper;

    @Override
    public List<ChMarket> listGid() {
        return chMarketExtMapper.listGid();
    }

    @Override
    public List<ChMarket> listKLine(String gid, DateTime offsetDay, Date date) {
        return chMarketExtMapper.listKLine(gid,offsetDay,date);
    }

    @Override
    public List<ChMarket> selectChMarketList(ChMarket chMarket) {
        return chMarketMapper.selectChMarketList(chMarket);
    }
}
